﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cinemax.DTO
{
    public class SuatChieuDTO
    {
        int _MaSuatChieu;
        int _MaPhim;
        int _MaPhongChieu;
        DateTime _ThoiGianBatDau;
        DateTime _ThoiGianKetThuc;
        int _SoLuongVe;
        string _TenPhongChieu;

        public string TenPhongChieu
        {
            get { return _TenPhongChieu; }
            set { _TenPhongChieu = value; }
        }

        public int SoLuongVe
        {
            get { return _SoLuongVe; }
            set { _SoLuongVe = value; }
        }

        public DateTime ThoiGianKetThuc
        {
            get { return _ThoiGianKetThuc; }
            set { _ThoiGianKetThuc = value; }
        }

        public DateTime ThoiGianBatDau
        {
            get { return _ThoiGianBatDau; }
            set { _ThoiGianBatDau = value; }
        }

        public int MaPhongChieu
        {
            get { return _MaPhongChieu; }
            set { _MaPhongChieu = value; }
        }

        public int MaPhim
        {
            get { return _MaPhim; }
            set { _MaPhim = value; }
        }

        public int MaSuatChieu
        {
            get { return _MaSuatChieu; }
            set { _MaSuatChieu = value; }
        }

        public SuatChieuDTO()
        {
        }

        public SuatChieuDTO(SP_GET_SUATCHIEU_TU_MAPHIM_NGAYCHIEUResult sc)
        {
            _MaPhim = sc.MaPhim.Value;
            _MaPhongChieu = sc.MaPhongChieu.Value;
            _MaSuatChieu = sc.MaSuatChieu;
            _SoLuongVe = sc.SoLuongVe.Value;
            _ThoiGianBatDau = sc.ThoiGianBatDau.Value;
            _ThoiGianKetThuc = sc.ThoiGianKetThuc.Value;
        }

        public SuatChieuDTO(SP_GET_SUATCHIEU_BYIDResult sc)
        {
            // TODO: Complete member initialization
            _MaPhim = sc.MaPhim.Value;
            _MaPhongChieu = sc.MaPhongChieu.Value;
            _MaSuatChieu = sc.MaSuatChieu;
            _SoLuongVe = sc.SoLuongVe.Value;
            _ThoiGianBatDau = sc.ThoiGianBatDau.Value;
            _ThoiGianKetThuc = sc.ThoiGianKetThuc.Value;
        }
    }
}